#include <bits/stdc++.h>
using namespace std;

int main()
{
    int col;
    string str;
    cin >> col >> str;
    int row = col % 2 == 0 ? col / 2 : col / 2 + 1;
    for (int _ = 1; _ <=  row; _++) {
        for (int c = 1; c <= col; c++) {
            cout << str;
        }
        cout << endl;
    }
    return 0;
}